#include<stdio.h>          
#include<string.h>

void Mystrcat(char arr[], char brr[], int p1, int p2)
{
	int  i = p1;
	int j = p1 + p2;
	int x = 0;
	for (; i <= j; i++)
	{
		arr[i] = brr[x];
		p2++;
		x++;
	}
	printf("%s\n", arr);
}
int main()
{
	char arr1[30] = "hello ";
	char arr2[] = "world";
	int x = strlen(arr1);
	int y = strlen(arr2);
	Mystrcat(arr1, arr2, x, y);
	return 0;
}